﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Web4Comment.Service
{
    public interface IFriendsService
    {
        /// <summary>
        /// 添加站内好友
        /// </summary>
        /// <param name="hostId">个人id</param>
        /// <param name="friendId">好友id</param>
        /// <returns></returns>
        int addFriends(int hostId, int friendId);

        /// <summary>
        /// 删除站内好友
        /// </summary>
        /// <param name="hostId">个人id</param>
        /// <param name="friendId">好友id</param>
        /// <returns></returns>
        int deleteFriends(int hostId, int friendId);

        /// <summary>
        /// 获取所有好友
        /// </summary>
        /// <param name="hostId">个人id</param>
        /// <returns></returns>
        List<UnlessComment.Model.User> getAllFriends(int hostId);

        /// <summary>
        /// 查找好友
        /// </summary>
        /// <param name="property">好友属性(全部的属性)</param>
        /// <returns></returns>
        List<UnlessComment.Model.User> searchFriends(Object property);

        /// <summary>
        /// 获取一个好友
        /// </summary>
        /// <param name="hostId">个人id</param>
        /// <param name="friendId">好友id</param>
        /// <returns></returns>
        UnlessComment.Model.User getSingleFriend(int hostId, int friendId);

        
    }
}
